package com.wyh.controller.gfive;

import com.wyh.common.result.Result;
import com.wyh.domain.po.gfive.Invoiceconfiguration;
import com.wyh.service.gfive.InvoiceconfigurationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("InvoiceConfiguration")
@Slf4j
@Api(tags = "票据管理-参数配置")
public class InvoiceConfigurationController {

    @Autowired
    private InvoiceconfigurationService invoiceconfigurationService;

    @ApiOperation("添加开票规则")
    @PostMapping("/add")
    public Result createInvoiceConfiguration(@RequestBody Invoiceconfiguration invoiceconfiguration) {
        return invoiceconfigurationService.add(invoiceconfiguration);
    }
}
